package com.yiyuan.app.controller;

import com.guaike.core.entity.result.Result;
import com.yiyuan.app.entity.result.VipVO;
import com.yiyuan.app.service.VipService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/vip")
@Api(tags = "会员等级相关接口组")
@AllArgsConstructor
public class VipController {

    private final VipService vipService;

    @GetMapping("/config/list")
    @ApiOperation(value = "会员中心页面")
    public Result<VipVO> vipConfigList() {
        return vipService.vipConfigList();
    }
}
